package com.cs.bd.ad.self.request;

import android.content.Context;
import com.cs.bd.ad.manager.AdSdkManager;

/**
 * Created by Administrator on 2017/12/6.
 */

public abstract class BaseAdsRequest {

    public static final int ADS_TYPE_XM = 1;

    public static final int ADS_TYPE_WAPS = 2;

    protected Context mContext;

    protected OnRequestListener mOnRequestListener;

    protected AdSdkManager.ILoadAdvertDataListener mLoadAdvertDataListener;


    public BaseAdsRequest(Context mContext, AdSdkManager.ILoadAdvertDataListener mLoadAdvertDataListener) {
        this.mContext = mContext;
        this.mLoadAdvertDataListener = mLoadAdvertDataListener;
    }

    public abstract void requestAds();

    public abstract int getAdsType();

    public void setOnRequestListener(OnRequestListener mOnRequestListener) {
        this.mOnRequestListener = mOnRequestListener;
    }

    public interface OnRequestListener {

        void onError(String s);

        void onFinish();

    }

}
